﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;

namespace DbDiploma.Entities
{
    public class CityEntity
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int CityId { get; set; }

        [Required]
        [EnumDataType(typeof(CityEnum))]
        public CityEnum City { get; set; }

        public virtual ICollection<CountryEntity> Countries {get; set;}
    }
}
